<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1, user-scalable=no" />
    <title>我的收益</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="js/rem_main.js"></script>
    <script src="js/fontnormal.js"></script>
</head>
<body>
<div class="wrapper profit">
    <div class="profit-head">
        <div class="head-left">总金额<p><?php echo !empty($data['userInfo']['money']) ? $data['userInfo']['money'] : '0.00'?></p></div>
        <div class="head-right">
            <a href="/home/getmoney" class="cash-btn">提 现</a>
        </div>
    </div>
    <div class="profit-con">
        <table>
            <tr class="profit-title">
                <td>时间</td>
                <td>姓名</td>
                <td>账号</td>
                <td>金额</td>
            </tr>
            <?php
                if(!empty($data['order'])){
                    foreach ($data['order'] as $k => $v)
                    {
            ?>
                    <tr>
                        <td><?php echo !empty($v->pay_time) ? date('Y-m-d',$v->pay_time) : '';?></td>
                        <td><?php echo !empty($v->name) ? $v->name : '';?></td>
                        <td><?php echo !empty($v->phone) ? $v->phone : '';?></td>
                        <td><?php echo !empty($v->paymoney) ? $v->paymoney/100 : '';?></td>
                    </tr>
            <?php
                    }
                }
            ?>
        </table>
    </div>
</div>
</body>
</html>